package time // Package time import "xemo.top/docker/api/types/time"
import (
	"strconv"
	"time"
)

// DurationToSecondsString 将指定的持续时间转换为它表示的秒数，格式为字符串。
// DurationToSecondsString converts the specified duration to the number seconds it represents,formatted as a string.
func DurationToSecondsString(duration time.Duration) string {
	return strconv.FormatFloat(duration.Seconds(), 'f', 0, 64)
}
